<?php 

function alteracao (){
			$email=$_POST['email'];
			$senha=$_POST['senha'];
			$nivel=$_POST['nivel'];
			$id=$_POST['id'];


			if(isset($_POST['id']) && is_numeric($_POST['id'])){

				$a=new Usuario($id,$email,$senha,$senha2,$nivel,$noticias,$info_conhecimento);

				if($a->getErro()!=''){
					return $a->getErro();
				}

				$conection=Conection::getConexao();
		
				$conection=Conection::getConexao();
				$nlinhas=$conection->executeUpdate(

												"UPDATE `tb_usuario` SET

												email='".$a->getEmail()."',
												nivel='".$a->getNivel()."'
												where id='".$id."'

												"
					);
			}

			$conection->close();
			session_start();
}
?>